#include <iostream>
#include <math.h>
#include <stdlib.h>
#define M_PI 3.1415926
using namespace std;

int main(void) {
    int num;
    int count = 1;
    int year = 0;
    float x_, y_, dis_2, area;
    cin >> num;
    while (num--) {
        cin >> x_ >> y_;
        dis_2 = pow(x_, (float)2.0) + pow(y_, (float)2.0);
        area = (dis_2 * M_PI)/2;
        while(true){
            if (area < year * 50.0) {
                printf("Property %d: This property will begin eroding in year %d.\n", count, year);
                break;
            }
            year++;
        }
        year = 0;
        count++;
    }
    cout << "END OF OUTPUT.";
    return 1;
}